﻿<Window
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      x:Class="Sinacor.OMM.Deployment.Setup.PreRequisitos"
      x:Name="Window"
      Title="Pré-requisitos de instalação do OMM - Order Message Manager"
      Width="800" Height="600" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" Background="#FF313131" Loaded="Window_Loaded"
    Closing="Window_Closing">
    <Window.Resources>
        <Storyboard x:Key="Loader01"
                             RepeatBehavior="Forever">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                              Storyboard.TargetName="loader01"
                                                              Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:01"
                                                      Value="5.172"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                              Storyboard.TargetName="loader01"
                                                              Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:01"
                                                       Value="-5.172"/>
            </DoubleAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00"
                                                             Storyboard.TargetName="loader01"
                                                             Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:01"
                                                     Value="#00FFFFFF"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Loader02"
                             RepeatBehavior="Forever">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                              Storyboard.TargetName="loader02"
                                                              Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:01"
                                                       Value="5.172"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                              Storyboard.TargetName="loader02"
                                                              Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:01"
                                                       Value="-5.172"/>
            </DoubleAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00"
                                                             Storyboard.TargetName="loader02"
                                                             Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:01"
                                                     Value="#00FFFFFF"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>
    <Window.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource Loader01}"/>
        </EventTrigger>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource Loader02}"/>
        </EventTrigger>
    </Window.Triggers>
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource=".\images\setupTelas.png"
                                   Opacity="1"/>
        </Grid.Background>
        <Grid Margin="221,14,0,0"
                    VerticalAlignment="Top"
                    Width="348"
                    Height="82"
                    HorizontalAlignment="Left">
            <Grid.Background >
                <ImageBrush ImageSource=".\images\LogoSinacor.png"
                                         Opacity="1"
                                         Stretch="UniformToFill"/>
            </Grid.Background>
        </Grid>
        <Label HorizontalAlignment="Left"
                     VerticalAlignment="Top"
                     Content="Pré-requisitos"
                     FontSize="24"
                     FontWeight="Bold"
                     Background="#00336699"
                     Foreground="#FF336699"
                     Margin="42.5,158,0,0"/>
        <TextBlock HorizontalAlignment="Left"
                           Margin="48,211,0,0"
                           VerticalAlignment="Top"
                           Height="37"
                           TextWrapping="Wrap">
                  <Run Text="O Instalador Sinacor OMM irá analisar o Sistema Operacional em busca de Componentes Necessários para a instalação do Sistema."/>
        </TextBlock>
        <GroupBox Header="Pré-requisitos" Margin="48,253,48,224"
                          Background="#59FFFFFF"
                          Opacity="1"
                          BorderThickness="1,1,1,1"
                          BorderBrush="#FF336699">
            <Grid>
                <Label HorizontalAlignment="Left"
                                VerticalAlignment="Top"
                                Content="Microsoft Message Queue "
                                Margin="8,8,0,0"
                                Width="139.073"
                                HorizontalContentAlignment="Right"/>
                <Path HorizontalAlignment="Left"
                               Margin="170,7,0,0"
                               Width="1"
                               Fill="#FFFFFFFF"
                               Stretch="Fill"
                               Stroke="#FFFFFFFF"
                               Data="M170,6.7233333 L170,122.79228"
                               Height="51.831"
                               VerticalAlignment="Top"/>
                <Path HorizontalAlignment="Left"
                               Margin="171,8,0,7.892"
                               Width="1"
                               Fill="#FFFFFFFF"
                               Stretch="Fill"
                               Stroke="#FFB9B5B5"
                               Data="M170,6.7233333 L170,122.79228"
                               />
                <Ellipse HorizontalAlignment="Left"
                                   Margin="200.197,18,0,0" Width="4.554" Fill="#FF336699" Stroke="{x:Null}" StrokeThickness="3" x:Name="loader01" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top" Height="4.554">
                    <Ellipse.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1" ScaleY="-1"/>
                            <SkewTransform AngleX="0" AngleY="0"/>
                            <RotateTransform Angle="0"/>
                            <TranslateTransform X="0" Y="0"/>
                        </TransformGroup>
                    </Ellipse.RenderTransform>
                </Ellipse>
                <Ellipse RenderTransformOrigin="0.5,0.5"
                             HorizontalAlignment="Left"
                             Margin="200.53,53.722,0,0"
                             x:Name="loader02"
                             Width="4.554"
                             Fill="#FF336699"
                             Stroke="{x:Null}"
                             StrokeThickness="3"
                             VerticalAlignment="Top"
                             Height="4.554">
                    <Ellipse.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1"
                                               ScaleY="-1"/>
                            <SkewTransform AngleX="0"
                                               AngleY="0"/>
                            <RotateTransform Angle="0"/>
                            <TranslateTransform X="0"
                                               Y="0"/>
                        </TransformGroup>
                    </Ellipse.RenderTransform>
                </Ellipse>
                <Path Stretch="Fill"
                                   StrokeStartLineCap="Square"
                                   StrokeEndLineCap="Square"
                                   StrokeMiterLimit="2.75"
                                   Stroke="#FF567661"
                                   Data="F1 M 164.292,93.3646C 167.053,93.3646 169.292,95.6032 169.292,98.3646C 169.292,101.126 167.053,103.365 164.292,103.365C 161.53,103.365 159.292,101.126 159.292,98.3646C 159.292,95.6032 161.53,93.3646 164.292,93.3646 Z "
                                   HorizontalAlignment="Left"
                                   Margin="197.277,14.002,0,0"
                                   Width="11"
                                   x:Name="LedMSMQOK"
                                         Height="11"
                                         VerticalAlignment="Top" Visibility="Hidden">
                    <Path.Fill>
                        <LinearGradientBrush StartPoint="0.525,0.9375"
                                                                 EndPoint="0.525,0.0875">
                            <GradientStop Color="#FFE3F237"
                                                             Offset="0"/>
                            <GradientStop Color="#FF9AD23C"
                                                             Offset="0.269767"/>
                            <GradientStop Color="#FF52B342"
                                                             Offset="0.488372"/>
                            <GradientStop Color="#FF6FC175"
                                                             Offset="0.832558"/>
                            <GradientStop Color="#FF8DCFA9"
                                                             Offset="1"/>
                        </LinearGradientBrush>
                    </Path.Fill>
                </Path>
                <Path Stretch="Fill"
                               StrokeStartLineCap="Square"
                               StrokeEndLineCap="Square"
                               StrokeMiterLimit="2.75"
                               Stroke="#FF567661"
                               Data="F1 M 164.292,93.3646C 167.053,93.3646 169.292,95.6032 169.292,98.3646C 169.292,101.126 167.053,103.365 164.292,103.365C 161.53,103.365 159.292,101.126 159.292,98.3646C 159.292,95.6032 161.53,93.3646 164.292,93.3646 Z "
                               Margin="197.277,14.002,0,0"
                                x:Name="LedMSMQNOK"
                               Width="11"
                               HorizontalAlignment="Left"
                               Height="11"
                               VerticalAlignment="Top" Visibility="Hidden">
                    <Path.Fill>
                        <LinearGradientBrush StartPoint="0.525,0.9375"
                                                                 EndPoint="0.525,0.0875">
                            <GradientStop Color="#FF8E1111"
                                                             Offset="0"/>
                            <GradientStop Color="#FFD23C3C"
                                                             Offset="0.465"/>
                            <GradientStop Color="#FFEA6262"
                                                             Offset="0.845"/>
                        </LinearGradientBrush>
                    </Path.Fill>
                </Path>
                <Path Stretch="Fill"
                             StrokeStartLineCap="Square"
                             StrokeEndLineCap="Square"
                             StrokeMiterLimit="2.75"
                             Stroke="#FF567661"
                             Data="F1 M 164.292,93.3646C 167.053,93.3646 169.292,95.6032 169.292,98.3646C 169.292,101.126 167.053,103.365 164.292,103.365C 161.53,103.365 159.292,101.126 159.292,98.3646C 159.292,95.6032 161.53,93.3646 164.292,93.3646 Z "
                             HorizontalAlignment="Left"
                             Margin="197.277,0,0,15.163"
                             VerticalAlignment="Bottom"
                             Width="11"
                             Height="11"
                             x:Name="LedOracleOK" Visibility="Hidden">
                    <Path.Fill>
                        <LinearGradientBrush StartPoint="0.525,0.9375"
                                         EndPoint="0.525,0.0875">
                            <GradientStop Color="#FFE3F237"
                                               Offset="0"/>
                            <GradientStop Color="#FF9AD23C"
                                               Offset="0.269767"/>
                            <GradientStop Color="#FF52B342"
                                               Offset="0.488372"/>
                            <GradientStop Color="#FF6FC175"
                                               Offset="0.832558"/>
                            <GradientStop Color="#FF8DCFA9"
                                               Offset="1"/>
                        </LinearGradientBrush>
                    </Path.Fill>
                </Path>
                <Path Stretch="Fill"
                             StrokeStartLineCap="Square"
                             StrokeEndLineCap="Square"
                             StrokeMiterLimit="2.75"
                             Stroke="#FF567661"
                             Data="F1 M 164.292,93.3646C 167.053,93.3646 169.292,95.6032 169.292,98.3646C 169.292,101.126 167.053,103.365 164.292,103.365C 161.53,103.365 159.292,101.126 159.292,98.3646C 159.292,95.6032 161.53,93.3646 164.292,93.3646 Z "
                             Margin="197.277,0,0,15.221"
                             x:Name="LedOracleNOK"
                             Width="11"
                             HorizontalAlignment="Left"
                             Height="11"
                             VerticalAlignment="Bottom" Visibility="Hidden">
                    <Path.Fill>
                        <LinearGradientBrush StartPoint="0.525,0.9375"
                                         EndPoint="0.525,0.0875">
                            <GradientStop Color="#FF8E1111"
                                               Offset="0"/>
                            <GradientStop Color="#FFD23C3C"
                                               Offset="0.465"/>
                            <GradientStop Color="#FFEA6262"
                                               Offset="0.845"/>
                        </LinearGradientBrush>
                    </Path.Fill>
                </Path>
                <Label HorizontalAlignment="Left"
                                VerticalAlignment="Top"
                                Content="Buscando Componente..."
                                Margin="220.75,8,0,0"
                                Foreground="#FF666666" Name="lblSearchComponentMQ"/>
                <Label HorizontalAlignment="Left"
                                VerticalAlignment="Bottom"
                                Content="Oracle Client 11g"
                                Margin="8,0,0,6"
                                Width="139"
                                HorizontalContentAlignment="Right" Height="26" />
                <Label Foreground="#FF666666"
                                HorizontalAlignment="Left"
                                Margin="220.75,44.723,0,0"
                                VerticalAlignment="Top"
                                Content="Buscando Componente..."
                       Name="lblSearchComponentOracle"/>
                <Label VerticalAlignment="Top"
                                Content="Microsoft Message Queue não encontrado. Por favor efetue a instalação deste componente."
                                Margin="220.75,8,8,0"
                                Foreground="#FFD13E3E"
                                Name="lblNoMessageQueue" Visibility="Hidden"/>
                <Label Foreground="#FF666666"
                                Margin="221,0,331,9"
                                VerticalAlignment="Bottom"
                                Content="Buscando Componente..." Visibility="Hidden"/>
                <Label Content="Componente encontrado com sucesso."
                                Margin="221,8,8,0"
                                Foreground="#FF1E8D12"
                                VerticalAlignment="Top" Name="lblOKMessageQueue" Visibility="Hidden" />
                <Label Foreground="#FFD13E3E"
                                Margin="221,0,8,9"
                                VerticalAlignment="Bottom"
                                Content="Oracle Client 11g não encontrado. Por favor efetue a instalação deste componente."
                                Background="#00FF0000"
                                Name="lblNoOracleClient" Visibility="Hidden"/>
                <Label Foreground="#FF1E8D12"
                                Margin="221,0,8,9"
                                VerticalAlignment="Bottom"
                                Content="Componente encontrado com sucesso."
                                Background="#00FFFFFF" Name="lblOKOracleClient" Visibility="Hidden" />
            </Grid>
        </GroupBox>
        <Button HorizontalAlignment="Right"
                        Content="Avançar"
                        Margin="0,0,48,18"
                        VerticalAlignment="Bottom"
                        Width="60"
                        Background="#FF2B4D83"
                        Foreground="#FFFFFFFF" Name="btnNext" IsEnabled="True"  Click="btnNext_Click" Visibility="Hidden" />
        <Button HorizontalAlignment="Right"
                        Margin="0,0,112.113,18"
                        VerticalAlignment="Bottom"
                        Content="Sair"
                        Width="60"
                        Background="#FF2B4D83"
                        Foreground="#FFFFFFFF" Name="btnExit" Click="btnExit_Click" />
    </Grid>
</Window>   